import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //折线曲线默认页面查询
  getDefaultData: (query) => api.get(`${config.interfaces.type5}portfolio-server/nonstandarCurve/getDefaultList`, query),
  //折线曲线页面新建编辑
  addData: (query) => api.post(`${config.interfaces.type5}portfolio-server/nonstandarCurve/saveOrUpdate`, query),
  //折线曲线默认页面删除
  deleteDefaultData: (query) => api.get(`${config.interfaces.type5}portfolio-server/nonstandarCurve/deleteDefault`, query),
  //折线曲线特定页面查询
  getSpecificData: (query) => api.get(`${config.interfaces.type5}portfolio-server/nonstandarCurve/getSpecificList`, query),
  //折线曲线特定页面删除
  deleteSpecificData: (query) => api.get(`${config.interfaces.type5}portfolio-server/nonstandarCurve/deleteSpecific`, query),
  //获取曲线字典下拉接口
  getCurveData: (query) => api.get(`${config.interfaces.type5}portfolio-server/nonstandarCurve/getCurves`, query),
};
